package com.wave.wavesystem.ai.tool;

import jakarta.annotation.Resource;
import org.springframework.ai.support.ToolCallbacks;
import org.springframework.ai.tool.ToolCallback;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * 工具管理工厂
 */
@Component
public class WaveToolCallBackFactory {

    @Resource
    private PostTools postTools;

    @Bean
    public ToolCallback[] waveToolCallbacks() {
        return ToolCallbacks.from(postTools,
                new TerminateToll()
        );
    }

}
